package JD_UMC_WAIT;

public class Example {
    void waitForCondition(Condition cond) {
        try {
            cond.wait();
        } catch (InterruptedException e) {
            return;
        }
    }
    // corrected code
    void waitForCondition2(Condition cond) {
        try {
            cond.await();
        } catch (InterruptedException e) {
            return;
        }
    }
}
